<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			/* var re = /\./;
			re = new RegExp("\\.");
			console.log(re.test("a.")); */
			var str = "               he    llo         ";
			console.log(str);
			//str = str.replace(/^\s*/,"");
			//str = str.replace(/\s*$/,""); 
			str = str.replace(/^\s*|\s*$/g,"");
			console.log(str);
		</script>
	</head>
	<body>
	</body>
</html>
